import request from '@/utils/request'
// 根据条件查询房屋
export const getHouse = (params) =>
  request({
    url: '/houses',
    params
  })

// /houses/condition
export const getConditionHouse = (params) =>
  request({
    url: '/houses/condition',
    params
  })

// ​/houses​/{id} 查询房屋具体信息
export const getHouseInfo = (id) =>
  request({
    url: `/houses/${id}`
  })

// 发布房屋所需要的的条件
export const addHouseInfo = () =>
  request({
    url: '/houses/params'
  })
